
Rails.application.routes.draw do
  # , :controllers => {:User => "User"}

  # get '/articles'
  get 'welcome/index'

  get "/users" => "users#index"
  get "/profile/:id" => "users#profile", :as => :user_profile

  get "/articles" => "articles#index"


  get "/contact/index"
  get "/about/index"

  resources :articles do
    resources :comments
  end

  resources :lists
  devise_for :users

  root to: 'welcome#index'
end